package com.niit.dao.impl;

import com.niit.dao.ILeave_messageDao;
import com.niit.domain.Leave_message;
import com.niit.utils.DBHelper;

public class Leave_messageDaoImpl implements ILeave_messageDao {
    @Override
    public int insertMessageDao(Leave_message leave_message) {
        String sql = "insert into sh_leave_message(lname,content,phone,ltime) values(?,?,?,?)";
        int i = DBHelper.executeUpdate(sql,leave_message.getLname(),leave_message.getContent(),leave_message.getPhone(),leave_message.getLtime());

        return i;
    }
}